package com.gzz.orchid.context.infrastructure.persistence.entity.fin;

import com.gzz.orchid.context.infrastructure.persistence.AbstractPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 账户表 fin_account
 *
 * @author higmd
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class FinAccountPo extends AbstractPojo {
    private Long id;
    /**
     * 账户编号 no
     */
    private String no;
    /**
     * 货币 currency
     */
    private String currency;
    /**
     * 账户余额  balance
     */
    private BigDecimal balance;
    /**
     * 冻结余额  frozen
     */
    private BigDecimal frozen;
    /**
     * 是否允许透支 allowed_overdraft
     */
    private Boolean allowedOverdraft;
    /**
     * 透支额度 overdraft_quota
     */
    private BigDecimal overdraftQuota;
    /**
     * 最近发生时间 last_occur_at
     */
    private LocalDateTime lastOccurAt;
    /**
     * 状态  status
     */
    private Integer status;

}
